package com.ivc.trade.action;

import java.util.List;

import javax.annotation.Resource;

import com.cs.framework.ui.bo.UIData;
import com.cs.framework.web.annotation.Action;
import com.cs.framework.web.annotation.Mapping;
import com.cs.framework.web.handler.Web;
import com.ivc.trade.dto.base.SellInfoDto;
import com.ivc.trade.service.SellInfoService;

/**
 * 销售信息
 * 
 * @author hedongzhou
 * 
 */
@Action("sellInfo")
public class SellInfoAction {

	@Resource
	private SellInfoService sellInfoService;

	/**
	 * 查询销售信息
	 */
	@Mapping
	public Object query() {
		SellInfoDto sellInfoDto = Web.bind(SellInfoDto.class);

		List<SellInfoDto> list = sellInfoService.query(sellInfoDto);
		int count = sellInfoService.count(sellInfoDto);

		return new UIData(list, count);
	}

}
